package com.woniu.outpatient.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.woniu.outpatient.mapper.RegistrationtypeMapper;
import com.woniu.outpatient.domain.Registrationtype;
import com.woniu.outpatient.service.IRegistrationtypeService;

/**
 * 就诊类型表Service业务层处理
 * 
 * @author wolf-six
 * @date 2023-02-15
 */
@Service
public class RegistrationtypeServiceImpl implements IRegistrationtypeService 
{
    @Autowired
    private RegistrationtypeMapper registrationtypeMapper;

    /**
     * 查询就诊类型表
     * 
     * @param registrationtypeId 就诊类型表主键
     * @return 就诊类型表
     */
    @Override
    public Registrationtype selectRegistrationtypeByRegistrationtypeId(Long registrationtypeId)
    {
        return registrationtypeMapper.selectRegistrationtypeByRegistrationtypeId(registrationtypeId);
    }

    /**
     * 查询就诊类型表列表
     * 
     * @param registrationtype 就诊类型表
     * @return 就诊类型表
     */
    @Override
    public List<Registrationtype> selectRegistrationtypeList(Registrationtype registrationtype)
    {
        return registrationtypeMapper.selectRegistrationtypeList(registrationtype);
    }

    /**
     * 新增就诊类型表
     * 
     * @param registrationtype 就诊类型表
     * @return 结果
     */
    @Override
    public int insertRegistrationtype(Registrationtype registrationtype)
    {
        return registrationtypeMapper.insertRegistrationtype(registrationtype);
    }

    /**
     * 修改就诊类型表
     * 
     * @param registrationtype 就诊类型表
     * @return 结果
     */
    @Override
    public int updateRegistrationtype(Registrationtype registrationtype)
    {
        return registrationtypeMapper.updateRegistrationtype(registrationtype);
    }

    /**
     * 批量删除就诊类型表
     * 
     * @param registrationtypeIds 需要删除的就诊类型表主键
     * @return 结果
     */
    @Override
    public int deleteRegistrationtypeByRegistrationtypeIds(Long[] registrationtypeIds)
    {
        return registrationtypeMapper.deleteRegistrationtypeByRegistrationtypeIds(registrationtypeIds);
    }

    /**
     * 删除就诊类型表信息
     * 
     * @param registrationtypeId 就诊类型表主键
     * @return 结果
     */
    @Override
    public int deleteRegistrationtypeByRegistrationtypeId(Long registrationtypeId)
    {
        return registrationtypeMapper.deleteRegistrationtypeByRegistrationtypeId(registrationtypeId);
    }
}
